package com.ruoyi.Factory.mapper;

import com.ruoyi.Factory.domain.General;
import com.ruoyi.WELD.domain.Welding;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GeneralMapper {
    List<General> selectGeneralList(@Param("general")General general, @Param("table")String table);
    General selectGeneralById(@Param("id")Long id,@Param("table")String table);
    int insertGeneral(@Param("general")General general, @Param("table")String table);
    int updateGeneral(@Param("general")General general, @Param("table")String table);
    int deleteGeneralByIds(@Param("ids")List<Long> ids,@Param("table")String table);
    List<General> selectGeneralByIds(@Param("ids")Long[] ids,@Param("table")String table);
    int ClearGeneral(String table);
    int insertBatch(@Param("list") List<General> list,@Param("table")String table);
}
